package mww.javabean.service;

import java.util.List;
import java.util.Map;
import java.util.Vector;

import mww.common.ServiceException;
import mww.javabean.entity.Student;

public interface StudentService {
	public void addStudent(Student student) throws ServiceException;// 添加学生信息

	public void delStudent(String studentNo) throws ServiceException;// 删除学生信息

	public void updateStudent(Student student) throws ServiceException;// 修改学生信息

	public Map findAllStudent(Integer curPage) throws ServiceException;// 查询所有学生带分页

	public List findAllStudent() throws ServiceException;// 查询所有学生

	public Map findAllStudentByMostCon(Student condition, Integer curPage) throws ServiceException;// 按条件查询学生

	public List findAllStudentByMostCon(Student condition) throws ServiceException;// 按条件查询学生带分页

	public Student findStudentByStudentNo(String studentNo) throws ServiceException;// 根据学号查询学生

	public List findAllStudentByClass(String cls) throws ServiceException; // 根据班级查询学生

	public List findAllStudentByMajor(String major) throws ServiceException; // 根据专业查询学生

	public int getStudentTotality() throws ServiceException;// 获取学生总数

	public void updateStudentPwd(String StudentNo, String pwd) throws ServiceException;// 更改密码

	public void updateScore(String studentNo, float sumCredit, float sumCreditGPA, float avgCreditGPA)
			throws ServiceException;// 更新学生总学分、总绩点、平均基地按、

	public void updateClassRank(String studentNo, int classRank) throws ServiceException; // 更新学生班级排名

	public void updateMajorRank(String studentNo, int majorRank) throws ServiceException; // 更新学生专业排名

	public Vector findAllMajor() throws ServiceException; // 查询所有专业

	public Vector findAllClass() throws ServiceException; // 查询所有班级
}
